// 元祖
var arr: [number, string, boolean] = [1, "123", true]
console.log(arr);

// 字符砖
let arr1: string[] = ["sb"]
console.log(arr1);

// 数组
let arr2: number[] = [1, 2, 3]
console.log(arr2);

// 枚举
enum color { red, grenn, bule }
let a: color = color.red
console.log(a);
// 布尔值
let arr3: boolean[] = [true, false]
console.log(arr3);

// 
let arr4: {
    name: string,
    age: number
}[] = [
        {
            name: "123",
            age: 18
        },
        {
            name: "123",
            age: 18
        },
    ]
// 
let string = ""
let fun = (can: number, can2: number) => {
    return can + can2
}
// 枚举
enum Color { Red, Gten, Blue }
let c: Color = Color.Gten
console.log(c);

//数组去重 
let newArr: number[] = [1, 2, 3, 4, 5, 6, 1, 3, 4, 9]
let newArr1: number[] = []

newArr.forEach((item: number, index: number) => {
    if (!newArr1.includes(item)) {
        newArr1.push(item)
    }
})
console.log(newArr1);